package com.woniu.zsd.user.service;

import com.woniu.zsd.user.dto.UserDTO;
import com.woniu.zsd.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.zsd.user.param.ChatParam;
import com.woniu.zsd.user.param.LoginParam;
import com.woniu.zsd.user.param.SignUpParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjf
 * @since 2025年02月22日
 */
public interface UserService extends IService<User> {
    void chat(ChatParam param);

    void addUserPoint(Integer userId, Integer point);

    void signUp(SignUpParam param) throws Exception;

    UserDTO login(LoginParam param, HttpServletRequest request) throws Exception;

    Set selectChatHistory(Integer userId, String recyclingOrderNum);

    void sendSignUpCode(String phone) throws Exception;

    Integer getUserPoint(Integer userId);

    String recognizeIdCard(MultipartFile idCard) throws Exception;
}